/*******************************************************
> Copyright (C) 2024 ==IOT== All rights reserved.
> File Name: const.c
> Author: IOT
> Website:www.slq.org
> Created Time: 2024年10月21日 星期一 16时11分35秒
***************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>

int main(int argc,const char* argv[])
{
	const int i = 0;

	int *pi = (int *)&i;
	*pi = 10;
	//const double pi = 3.1415;

	int n = 0;
	const int * const pn = &n;
	//*pn = 10; // error	

	int m;
	//pn = &m;
	
	printf("i = %d\n", i);
    return 0;
}

